package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 销售订单
 * </p>
 *
 * @author 小飞
 * @since 2019-07-04
 */
@TableName("sales_order")
@Data
public class SalesOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编号
     */
    @TableField("serial_num_order")
    private String serialNumOrder;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 销售人员
     */
    @TableField("sales_user_id")
    private Long salesUserId;

    /**
     * 购买者姓名
     */
    @TableField("sales_name")
    private String salesName;

    /**
     * 购买者手机号
     */
    @TableField("sales_phone")
    private String salesPhone;

    /**
     * 收货地址
     */
    @TableField("sales_addr")
    private String salesAddr;

    /**
     * 采购单id ，分割
     */
    @TableField("purchase_order_id")
    private String purchaseOrderId;

    /**
     * 交易状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 物流信息
     */
    @TableField("logistics")
    private String logistics;

    /**
     * 评论信息
     */
    @TableField("comment")
    private String comment;

    /**
     * 特价审核状态
     */
    @TableField("special_price_staus")
    private Integer specialPriceStaus;


    /**
     * 销售人员部门
     */
    @TableField("sales_dept")
    private String salesDept;

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    @TableField("address_id")
    private Long addressId;

    /**
     * 流程id
     */
    @TableField("process_instance_id")
    private String processInstanceId;

    /**
     * 审核状态 1.待审核 2,审核通过3.审核失败4.退回
     */
    @TableField("check_code")
    private Integer checkCode;

    public Integer getDealStatus() {
        return dealStatus;
    }

    public void setDealStatus(Integer dealStatus) {
        this.dealStatus = dealStatus;
    }

    /**
     * 发货状态 1.未发货2，已发货 3收货完成
     */
    @TableField("dealStatus")
    private Integer dealStatus;


    public Integer getSalsType() {
        return salsType;
    }

    public void setSalsType(Integer salsType) {
        this.salsType = salsType;
    }

    /**
     * 订货序列号拼接
     */
    @TableField("serial_num")
    private String serialNum;

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    /**
     * 销售类型
     */
    @TableField("sals_type")
    private Integer salsType;


    public Long getId() {
        return id;
    }

    public String getSalesDept() {
        return salesDept;
    }

    public void setSalesDept(String salesDept) {
        this.salesDept = salesDept;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSerialNumOrder() {
        return serialNumOrder;
    }

    public void setSerialNumOrder(String serialNumOrder) {
        this.serialNumOrder = serialNumOrder;
    }

    public Long getSalesUserId() {
        return salesUserId;
    }

    public void setSalesUserId(Long salesUserId) {
        this.salesUserId = salesUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }



    public String getSalesName() {
        return salesName;
    }

    public void setSalesName(String salesName) {
        this.salesName = salesName;
    }

    public String getSalesPhone() {
        return salesPhone;
    }

    public void setSalesPhone(String salesPhone) {
        this.salesPhone = salesPhone;
    }

    public String getSalesAddr() {
        return salesAddr;
    }

    public void setSalesAddr(String salesAddr) {
        this.salesAddr = salesAddr;
    }

    public String getPurchaseOrderId() {
        return purchaseOrderId;
    }

    public void setPurchaseOrderId(String purchaseOrderId) {
        this.purchaseOrderId = purchaseOrderId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getLogistics() {
        return logistics;
    }

    public void setLogistics(String logistics) {
        this.logistics = logistics;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getSpecialPriceStaus() {
        return specialPriceStaus;
    }

    public void setSpecialPriceStaus(Integer specialPriceStaus) {
        this.specialPriceStaus = specialPriceStaus;
    }

    @Override
    public String toString() {
        return "SalesOrder{" +
        "id=" + id +
        ", serialNumOrder=" + serialNumOrder +
        ", createTime=" + createTime +
        ", salesman=" + salesUserId +
        ", salesName=" + salesName +
        ", salesPhone=" + salesPhone +
        ", salesAddr=" + salesAddr +
        ", purchaseOrderId=" + purchaseOrderId +
        ", status=" + status +
        ", logistics=" + logistics +
        ", comment=" + comment +
        ", specialPriceStaus=" + specialPriceStaus +
        "}";
    }
}
